package com.pzb.page.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

/**
 * 单图展示对象 pg_page_item_picture
 * 
 * @author Mr_Wu
 * @date 2021-12-27
 */
public class PgPageItemPicture implements Serializable
{
    private static final long serialVersionUID = 1L;


    private String previewPath;

    /** 链接类型：1首页；2商品；3商品分类；4优惠券；5自定义页面；6搜索页 */
    private Integer linkType;

    /** 链接地址 */
    private String linkAddress;

    public String getPreviewPath() {
        return previewPath;
    }

    public void setPreviewPath(String previewPath) {
        this.previewPath = previewPath;
    }

    public void setLinkType(Integer linkType)
    {
        this.linkType = linkType;
    }

    public Integer getLinkType() 
    {
        return linkType;
    }
    public void setLinkAddress(String linkAddress) 
    {
        this.linkAddress = linkAddress;
    }

    public String getLinkAddress() 
    {
        return linkAddress;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("linkType", getLinkType())
            .append("linkAddress", getLinkAddress())
            .toString();
    }
}
